<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=320; user-scalable=0;"/>
<!--[if IE]><script type="text/javascript" src="excanvas.js"></script><![endif]-->
  <script src="icanvas010.js"></script>
  <script type="text/javascript">
var canvas;

function init()
{
  canvas = new iCanvas(document.getElementById("canvas1"));
  var item;
  item = new iCanvas.Item(10, 10, 30, 40, 'red');
  canvas.add(item);
  item = new iCanvas.Item(50, 10, 40, 30, 'blue');
  canvas.add(item);
}
  </script>
</head>
<body onload="init()" style="margin:0">
  <canvas id="canvas1" 
    style="position:absolute; width:100%; height:100%; left:0px; top:0px; background:#ffff80">
  </canvas>
</body>
</html>
